package com.tutu.feign.feignclient;

import com.tutu.commons.entity.Book;
import org.springframework.stereotype.Component;

/**
 * @Program: SpringCloud
 * @Description:
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-02 13:37
 **/
@Component
public class BookClientFallBack implements BookClient{
    @Override
    public Book findBookById(int bid) {
        Book book = new Book();
        book.setBid(-1);
        book.setDesc("未知错误");
        book.setTitle("未知错误");
        return book;
    }
}
